/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86185
 * Date: 2023-03-02
 * Time: 18:57
 */
import java.util.Random;
import java.util.Scanner;
public class test {
    public static void main1(String[] args) {
        System.out.println("\\\"hello\\\"");//\\  \"  hello  \\  \"
        //1000 0000

        short a = 128;//0000 0000 1000 0000
        byte b = (byte) a;//1000 0000
        //1111 1111 1111 1111 1111 1111 1000 0000  补码
        //1000 0000 0000 0000 0000 0000 0111 1111  反码
        //1000 0000 0000 0000 0000 0000 1000 0000  原码
        //-128
    }

    public static void main2(String[] args) {
        //不能做switch的参数的数据类型：long float double boolean
        String a = "hello";
        switch (a) {
            case "hello":
                System.out.println(1);
                break;
            case "1":
                System.out.println(2);
                break;
        }

    }

    public static void main3(String[] args) {
//        int i=1;
//        while(i<=10){
//            System.out.println(i);
//            i++;
//        }
//        int n=5;
//        int sum=1;
//        while(n>=1) {
//            sum*=n;
//            n--;
//        }
//        System.out.println(sum);
        int x = 1;
        int ret = 0;
        while (x < 6) {
            int i = 1;
            int sum = 1;
            while (i <= x) {
                sum *= i;
                i++;
            }
            ret += sum;
            x++;
        }
        System.out.println(ret);
    }

    public static void main4(String[] args) {
//        int i=1;
//        while(i<=10){
//            if(i%3==0){
//                System.out.println(i);
//                //continue;
//                break;
//            }
//            i++;
//        }
        int i = 1;
        while (i <= 100) {
            if (i % 5 == 0 && i % 6 == 0) {
                System.out.println(i);
                i++;
                continue;
            }
            i++;
        }
    }

    public static void main5(String[] args) {
        int ret=0;
        for (int k=1;k<5;k++) {
            int sum=1;
            for (int i = 1; i <= k; i++) {
                sum*=i;
            }
            ret+=sum;
        }
        System.out.println(ret);
    }

    public static void main6(String[] args) {
        Scanner scan=new Scanner(System.in);
        System.out.println("shuru");
        int a=scan.nextInt(8);
        System.out.println(a);
        scan.nextLine();
        System.out.println("name");
        String name=scan.nextLine();//遇到空格不会结束
        System.out.println(name);
        System.out.println("=========");
        int b=scan.nextInt(8);
        System.out.println(a);
        System.out.println("name");
        String name2=scan.next();
        System.out.println(name2);
        scan.close();
    }

    public static void main7(String[] args) {
        Scanner scan=new Scanner(System.in);
        int sum=0;
        while(scan.hasNextInt()) {
            int a=scan.nextInt();
            sum+=a;
        }
        System.out.println(sum);
        scan.close();
    }

    public static void main8(String[] args) {
        double num=7;
        int i = 2;
//        for(;i<num;i++) {
//            if(num%i==0) {
//                System.out.println("bushi");
//                break;
//            }
//        }
//        if(i==num)
//            System.out.println("shi");
        for(; i <= Math.sqrt(num);i++) {
            if(num%i==0){
                System.out.println("bushi");
                break;
            }
        }
        if(i>Math.sqrt(num))
            System.out.println("shi");
    }

    public static void main9(String[] args) {
        for (int i = 1; i < 10; i++) {
            for (int j = 1; j < i; j++) {
                System.out.print(j+"*"+i+"="+i*j+" ");
            }
            System.out.println();
        }
    }

    public static void main10(String[] args) {
        Random random = new Random();
        Scanner sr = new Scanner(System.in);
        int toGuess = random.nextInt(100);
        while(true) {
            System.out.println("请输入数字");
            int num = sr.nextInt();
            if(num < toGuess) {
                System.out.println("小");
            } else if (num > toGuess) {
                System.out.println("大");
            } else {
                System.out.println("√");
                break;
            }
        }
        sr.close();
    }

    public static void main11(String[] args) {
        double sum=0;
        int flag = -1;
        for (int i = 1; i < 101; i++) {
            sum+=(double)1/i*Math.pow(-1.0,i+1);
        }
        System.out.println(sum);
    }
    public static void main12(String[] args) {
        Scanner in = new Scanner(System.in);
        while(in.hasNextInt()){
            int n = in.nextInt();
            for(int i = 0; i < n ; i++){
                for (int j = 0; j < n; j++) {
                    if(i==j){
                        System.out.print('*');
                    } else if(j==n-1-i){
                        System.out.print('*');
                    } else{
                        System.out.print(' ');
                    }
                }
                System.out.println();
            }
        }
    }

    public static void main13(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int sum=1;
        for (int i = 1; i <= n; i++) {
            sum*=i;
        }
        System.out.println(sum);
    }

    public static void main14(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int sum = 0;
        int ret = 1;
        for (int i = 1; i <= n; i++) {
            ret *= i;
            sum += ret;
        }
        System.out.println(sum);
    }

    public static void main15(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        if(n==1){
            System.out.println("no");
        } else if (n==2) {
            System.out.println("yes");
        } else {
            int i = 2;
            for (; i <= Math.sqrt(n); i++) {
                if(n % i == 0){
                    System.out.println("no");
                    break;
                }
            }
            if(i>Math.sqrt(n)){
                System.out.println("yes");
            }
        }
    }

    public static void main16(String[] args) {
        for (int i = 2; i <= 100; i++) {
            int flag = 0;
            for (int j = 2; j <= Math.sqrt(i); j++) {
                if(i % j == 0){
                    flag ++;
                }
            }
            if(flag == 0){
                System.out.print(i + " ");
            }
        }
    }

    public static void main17(String[] args) {
        for (int i = 1000; i <= 2000; i++) {
            if((i % 4 == 0 && i % 100 != 0) || i % 400 == 0){
                System.out.print(i + " ");
            }
        }
    }

    public static void main18(String[] args) {
        int count = 0;
        for (int i = 1; i <= 100; i++) {
            if(i % 10 == 9){
                count ++;
            }
            if (i / 10 == 9) {
                count++;
            }
        }
        System.out.println(count);
    }

    public static void main19(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        for (int i = 1; i <= n; i++) {
            for (int j = 1; j <= i; j++) {
                System.out.print(j+"*"+i+"="+i*j+" ");
            }
            System.out.println();
        }
    }

    public static void main20(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        while(n>0){
            System.out.println(n%10);
            n/=10;
        }
    }

    public static void main(String[] args) {
        String pw = "123456";
        Scanner in = new Scanner(System.in);
        int count = 3;
        for (int i = 0; i < 3; i++) {
            String input = in.nextLine();
            if(input.equals(pw)) {
                System.out.println("right");
                break;
            } else {
                count--;
                System.out.println("wrong,just have "+count+" times");
            }
        }
        if(count == 0) {
            System.out.println("exit");
        }
    }
}
